package com.foreveredu.propms.persist;

import java.util.List;
import java.util.Map;

import com.foreveredu.propms.domain.Owner;
import com.foreveredu.propms.domain.PageModel;
import com.foreveredu.propms.domain.SubDistrict;

public interface IOwnerDao extends IDao<Owner, Integer> {

	//通过业主编号查找业主对象
	Owner findByOwnerId(String ownerId);

	PageModel findOwnerList(int offset);

	Owner findOwnerByIdCard(String idCard);

	//通过业主姓名查找业主信息
	Owner findByName(String ownerName);

	//通过业主电话查找业主信息
	Owner findByPhone(String phone);

	PageModel findOwnerListByDistrict(int offset, int districtId);

	PageModel findOwnerListBySubDistrict(int offset, int subDistrict_id);
	
	//业主欠费信息查询
	PageModel findOweCollectChargeBySub(int offset,int subDistrict_id,int year,int month);

	PageModel findOweCollectChargeAll(int offset, int year, int month);
	
	PageModel findOwdCollectChargeBySubList(int offset,SubDistrict sub, int year, int month);
	
	PageModel findOweCollectChargeAllList(int offset, int year, int month);

	List<Map<String, Object>> findOweCollectChargeAll(int year, int month);

	List<Map<String, Object>> findOweCollectChargeBySub(int id, int year,
			int month);

	List<Map<String, Object>> findOweCollectChargeAllList(int year, int month);

	List<Map<String, Object>> findOwdCollectChargeBySubList(SubDistrict sub,
			int year, int month);
	//通过房产编号和业主身份证查询业主
	Owner findOwnerByHouseIdAndIdCard(String houseId, String idCard);

	Owner findOwnerByHouseIdAndPassword(String houseId, String password);
}
